#ifndef ADDFUNC_H
#define ADDFUNC_H

#include <QDialog>
#include "myfunc.h"

namespace Ui {
class Addfunc;
}

class Addfunc : public QDialog
{
    Q_OBJECT

public:
    explicit Addfunc(QWidget *parent = nullptr);
    ~Addfunc();
    bool eventFilter(QObject *, QEvent *);//过滤器
public slots:
    void setFunc(std::string& expr,std::vector<std::any>&  post);
signals:
     void hitOK(MyFunc* function);
private:
    Ui::Addfunc *ui;
    MyFunc*function;
};
#endif // ADDFUNC_H
